package com.chenxinzhimusic.di

import com.chenxinzhimusic.viewmodel.MusicSearchViewModel
import com.chenxinzhimusic.viewmodel.MusicViewModel
import com.chenxinzhimusic.viewmodel.PlayListViewModel
import org.koin.android.ext.koin.androidContext
import org.koin.core.module.dsl.viewModel
import org.koin.dsl.module

val appModule = module {


    viewModel {
        MusicViewModel(androidContext())

    }
    viewModel {
        MusicSearchViewModel()
    }

    viewModel {
        PlayListViewModel(androidContext())
    }
}